<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php $this->load->view('head'); ?>
</head>

<body>
	<?php $this->load->view('header_admin.php'); ?>
	
	<!-- Content Area -->
	<div class="wrapper-world content">
		<div class="wrapper">
		<?php if ($isEdit): ?>
		<h1><?php echo htmlspecialchars($company->name); ?></h1>
		<?php else: ?>
		<h1>New company</h1>
		<?php endif; ?>
			
			<div class="left-half">
				<?php echo form_open($formPost, array('class' => 'standard-form')); ?>
				
					<div class="one">
						<?php echo form_label('Company name', 'name'); ?>
						<?php $nameInput = array('name' => 'name', 'id' => 'name'); ?>
						<?php
							if ($isEdit)
								$nameInput['value'] = $company->name;
						?>
						<div class="type-text"><?php echo form_input($nameInput); ?></div>
						<div class="clr"></div>
					</div>
					<div class="one no-left">
						<div class="type-btn"><?php echo form_submit('doedit', 'Submit'); ?></div>
						<div class="clr"></div>
					</div>
				</form>
			</div>
			
			<div class="clr"></div>
		</div>
		
		<!--          -----------------------------------------------------------------------------          -->
		
	</div></div> <!-- end of wrapper-world and .content -->
	
	
		
	<div class="wrapper-world footer-top">
		<div class="wrapper"></div>	
	</div>
	
	<?php $this->load->view('footer'); ?>
</body>
</html>
